package ewms.service;

import ewms.domain.EwmsOutFactory;
import ewms.vo.EwmsOutFactoryVo;
import ewms.bo.EwmsOutFactoryQueryBo;
import ewms.bo.EwmsOutFactoryAddBo;
import ewms.bo.EwmsOutFactoryEditBo;
import ewms.common.core.page.IServicePlus;
import ewms.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 委外出厂Service接口
 *
 * @author zhaoxiaochun
 * @date 2022-02-17
 */
public interface IEwmsOutFactoryService extends IServicePlus<EwmsOutFactory> {
	/**
	 * 查询单个
	 * @return
	 */
	EwmsOutFactoryVo queryById(Long outFactoryId);

	/**
	 * 查询列表
	 */
    TableDataInfo<EwmsOutFactoryVo> queryPageList(EwmsOutFactoryQueryBo bo);

	/**
	 * 查询列表
	 */
	List<EwmsOutFactoryVo> queryList(EwmsOutFactoryQueryBo bo);

	/**
	 * 根据新增业务对象插入委外出厂
	 * @param bo 委外出厂新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(EwmsOutFactoryAddBo bo);

	/**
	 * 根据编辑业务对象修改委外出厂
	 * @param bo 委外出厂编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(EwmsOutFactoryEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
